package com.lovo.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * 用户类
 */
@Data
@TableName("t_user")
public class UserBean {
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;
//    用户账号
    @TableField("user_code")
    private String userCode;
    @TableField("user_password")
    private String userPassword;
    @TableField("user_name")
    private String userName;
    @TableField(exist = false)
    private List<RoleBean> roleList;
}
